<?php defined('IN_HOPECMS') or exit('Access Denied'); ?>
<script type="text/javascript" src="{__PUBLIC__}ue/editor_config.js"></script>
<script type="text/javascript" src="{__PUBLIC__}ue/editor_all_min.js"></script>
<form name="add_category" method="post">
	<div class="content-title"><?php if (!isset($stauts)) :?>添加跳转栏目<?php else : ?>修改跳转栏目 - <?php echo $cat['name']; endif; ?></div>
	<div id="tab">
		<div class="tab-title">
			<ul>
				<li class="li active">基本信息</li>
			</ul>
		</div>
		<div class="clear"></div>
		<div class="tab-content">
			<table class="table-input" cellpadding="0" border="0" cellspacing="0" width="100%">
				<tr>
					<td class="td-title">上级栏目：</td>
					<td class="td-value" id="ad">
						<?php echo $tree_data;?>
					</td>
					<td class="td-mark">不选择为顶级栏目</td>
				</tr>
				<tr>
					<td class="td-title">栏目名称：</td>
					<td class="td-value"><input type="text" v="re" msg="请输入栏目名称" value="<?php if (isset($cat['name'])): echo $cat['name']; endif;?>" name="name" /></td>
					<td class="td-mark"><span class="col-red">*</span> 请输入栏目名称</td>
				</tr>
				<tr>
					<td class="td-title" id="bd_edit">栏目图片：</td>
					<td class="td-value" id="setimg"></td>
					<td class="td-mark"><?php echo Html::uploadOneImg('setimg', 'bd_edit',  isset($cat['image']) ? $cat['image'] : '');?></td>
				</tr>
				<tr>
					<td class="td-title" width="150">跳转链接：</td>
					<td class="td-value">
						<input type="text" v="re" msg="请输入跳转链接" value="<?php if (isset($cat['jump_url'])): echo $cat['jump_url']; endif;?>" name="jump_url" />
					</td>
					<td class="td-mark"><span class="col-red">*</span> 栏目跳转外部链接地址</td>
				</tr>
			</table>
		</div>
	</div>
	<?php if (isset($stauts)) :?>
	<input type="hidden" name="cat_id" value="<?php echo $cat['cat_id'];?>" />
	<input type="hidden" name="type" value="2" />
	<?php endif;?>
	<input type="hidden" name="token" value="<?php echo $token_code;?>" />
</form>